#pragma once
#include "system/System.h"
#include "os/Graphics/Texture.h"
#include <math.h>

#ifndef LEO_ANIMATIONINFO_H
#define LEO_ANIMATIONINFO_H

namespace leo
{

struct Frame
{
	float u,v;
	
};

class LEO_API AnimationInfo
{
	int framesPerLine;
	int framesCount;
	int framesPerSecond;
	float width;
	float height;
	Frame *frames;	
	Frame *frameList;

public:
	AnimationInfo(int _frameCount, int _framePerLine, int _framePerSecond);
	~AnimationInfo(void);

	void SetFrameSize(leo::Texture::Ptr _tex, int _frameNumber, float _u, float _v);
	void SetFrameNumber(int _frameNumber, int _frameOrder);
	Frame GetFrame(int _frameNumber);



#include "AnimationInfo.inl"
};

}//end namespace

#endif